import request from '@/utils/request'

/**
 * @description: 新增文件分片内容
 * @param {*} data
 * @return {*}
 */
export function uploadFileSlice(data) {
  return request({
    url: '/file/deft/slice',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data'
    },
    data
  })
}

/**
 * @description: 合并已经分片的数据
 * @param {*} data
 * @return {*}
 */
export function mergeFile(data) {
  return request({
    url: '/file/deft/merge',
    method: 'post',
    data
  })
}
